package List;

import java.util.ArrayList;
import java.util.List;

public class method_05 {
    public static void main(String[] args) {
        List list = new ArrayList();
        list.add("aaaa");
        list.add("anc");
        list.add(100);
        list.add(32);
        System.out.println("list" + list);
        list.set(2, "这个是修改的数据");
        System.out.println("list" + list);
        list.set(2, "这个是第二次修改的数据");
        System.out.println("list" + list);
    }
}
